#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "App.h"
#import "main.h"

void PACOLOG(const char *fmt, ...)
{
    static FILE *fp     = NULL;
    va_list     ap;

    if(fp == NULL) {
        fp      = fopen(FILE_LOG, "a+");
        if(fp)
            fprintf(fp, "============================\n");
    }
    if(fp) {
        va_start(ap,fmt);
        vfprintf(fp,fmt,ap);
        fflush(fp);
        va_end(ap);
    }
}

int main(int argc, char *argv[]) {
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	int ret = UIApplicationMain(argc, argv, [App class]);
	[pool release];
	return ret;
}
